package org.tio.sitexxx.service.service.qj;

import com.jfinal.kit.Kv;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.SqlPara;
import org.tio.sitexxx.service.model.main.Admin;
import org.tio.sitexxx.service.vo.Const;

public class AdminService {
    public static final AdminService me = new AdminService();
    final Admin dao = new Admin().dao();
    public Admin findAdmin(Kv kv){
        SqlPara sqlPara =   Db.use(Const.Db.TIO_SITE_MAIN).getSqlPara("admin.findAdmin",kv);
        return dao.findFirst(sqlPara);
    }
}
